package v1

import (
	"Sailor/app/Sailor-console-server/internal/model/entity"
	"github.com/gogf/gf/v2/frame/g"
)

type LoginReq struct {
	g.Meta   `path:"/login" tags:"login" method:"post" summary:"用户登录"`
	UserName string `v:"required#请输入用户名" dc:"登陆账号"`
	Password string `v:"required#请输入密码" dc:"登陆密码"`
}

type LoginRes struct {
	Token      string         `json:"token" dc:"token"`
	ExpireTime string         `json:"expireTime" dc:"token过期时间"`
	UserInfo   entity.SysUser `json:"userInfo" dc:"用户信息"`
}
